package com.yonyou.iuap.ipaas.connector.sdwcoatencent.api.model.core.constant;

public class ApiConstants {

	// 员工
	public static final String UPDATE_USER = "/cgi-bin/user/update?access_token=%s&userid=%s";
	public static final String CREATE_USER = "/cgi-bin/user/create?access_token=%s";
	public static final String DELETE_USER = "/cgi-bin/user/delete?access_token=%s&userid=%s";
	
	// 部门
	public static final String UPDATE_DEPT = "/cgi-bin/department/update?access_token=%s";
	public static final String CREATE_DEPT = "/cgi-bin/department/create?access_token=%s";
	public static final String DELETE_DEPT = "/cgi-bin/user/delete?access_token=%s&id=%s";
	
	/**
	 * 访问令牌过期时间（单位：秒）
	 */
	public static final Long ACCESS_TOKEN_EXPIRE_SECOND = 2L * 60 * 60;
	
	/**
	 * 访问令牌需要刷新的时间（单位：毫秒）
	 */
	public static final Long ACCESS_TOKEN_REFRESH_MILLISECOND = 2L * 59 * 60 * 1000;
	
	/**
	 * Http调用连接超时时间（单位：毫秒）
	 */
	public static final Integer HTTP_CONNECT_TIMEOUT_MILLISECOND = 10 * 1000;
	
	public static final String APP_ACCESS_TOKEN = "/cgi-bin/gettoken";
	
}

